<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if $pid}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">地區名:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control"  type="text" value="{$parent_name}" readonly>
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>地區名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" data-rule="required" name="row[name]" placeholder="請輸入地區名"  type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" placeholder="請輸入排序" type="number" value="">
        </div>
    </div>
    <input type="hidden" name="row[pid]" value="{$pid}">
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <!-- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> -->
        </div>
    </div>
</form>
